<template>
  <div class="page_list">
      <img src="../../assets/img/logo.png" alt="">
      <div class="words"> 正在跳转中...... </div>
  </div>
</template>

<script>
import Cookies from 'js-cookie'
export default {
    created(){
      this.getToken()
    },
    methods:{
        getToken(){
          this.$http.get('/getToken',{
            params:{
              state:localStorage.getItem('state') || ""
            }
          }).then(res=>{
            if(res.data.code == 0){
              Cookies.set('token', res.data.data.token)
              this.$router.replace({ path: '/sys-appointment' })
            }
            console.log(res,'11111111111111')
          })
        }
    }
}

</script>

<style lang="scss" scoped>
  .page_list{
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    img{
      width: 200px;
      height: 200px;
      margin-bottom: 50px;
      transform: translateY(-100px);
      background-size: 100% 100%;
    }
    .words{
      transform: translateY(-100px);
    }
  }
</style>

